package cn.harmonyoslearn.navrouter.listeners;

import cn.harmonyoslearn.navrouter.models.ServiceModel;
import cn.harmonyoslearn.navrouter.utils.LogUtil;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.startup.StartupActivity;
import org.jetbrains.annotations.NotNull;

/**
 * 项目初始化后的操作
 */
public class MyProjectManagerListenerRegistrar implements StartupActivity {
    @Override
    public void runActivity(@NotNull Project project) {
        LogUtil.i("MyProjectManagerListenerRegistrar.runActivity", "项目初始化完成");
        FileUndoListener.getInstance().setupListeners(project);
        ServiceModel.getInstance().init(project);
    }
}